package com.tuanzi.loan.business.repository.system;

import java.util.List;

import com.tuanzi.loan.business.entity.system.FunctionalPermission;
import com.tuanzi.loan.business.repository.system.custom.FunctionalPermissionRepositoryCustom;
import com.tuanzi.loan.core.repository.JPABaseRepository;

/**
 * @author Ray 2017/09/21
 */
public interface FunctionalPermissionRepository extends FunctionalPermissionRepositoryCustom,
        JPABaseRepository<FunctionalPermission, String> {

    List<FunctionalPermission> findAllByParentId(String parentId);

    List<FunctionalPermission> findByCode(String code);

}
